<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
	<head>
		<title>Busqueda de Usuario</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css"></style>
<%--<link href="<%= request.getContextPath() %>/css/estilos.css"--%>
	rel="stylesheet" type="text/css">
</head>
<body>
<f:loadBundle basename="curso.bundle.Mensajes" var="msg" />
		<f:view>
			<h:form id="buscarUsrForm">
				<table align="center" width="300">
					<tr>
					<td colspan="2" align="center">
						<b><h:outputText value="#{msg.consulta_Usuarios_title}" /></b>
					</td>
					</tr>
					<br/>
					<tr>
					<td>
						<h:outputText value="#{msg.userName}:" />
					</td>
					<td>
						<h:selectOneMenu value="#{usuarioBean.selectUser}" 
							onchange="submit();" valueChangeListener="#{usuarioBean.mostrarDetalles}">
							<f:selectItem itemLabel="Seleccione..." itemValue=""/>
							<f:selectItems value="#{usuarioBean.comboUser}"/>
						</h:selectOneMenu>
					</td>
					</tr>
				</table>
				<br>
				
				<table width="600" align="center" border="2" cellpadding="0" cellspacing="0">
					<tr align="center">
						<td>
							<h:outputText value="#{msg.name}" />
						</td>
						<td>
							<h:outputText value="#{msg.surname}" />
						</td>
						<td>
							<h:outputText value="#{msg.age}" />
						</td>
						<td>
							<h:outputText value="#{msg.address}" />
						</td>
						<td>
							<h:outputText value="#{msg.userName}" />
						</td>
						<td>
							<h:outputText value="#{msg.pwd}" />
						</td>
						<td>
							<h:outputText value="#{msg.phone}" />
						</td>
					</tr>
					<tr>
						<td>
							<h:outputText value="#{requestScope.usr.nombre}" />
						</td>
						<td>
							<h:outputText value="#{requestScope.usr.apellido}" />
						</td>
						<td>
							<h:outputText value="#{requestScope.usr.edad}" />
						</td>
						<td>
							<h:outputText value="#{requestScope.usr.address}" />
						</td>
						<td>
							<h:outputText value="#{requestScope.usr.login}" />
						</td>
						<td>
							<h:outputText value="#{requestScope.usr.pwd}" />
						</td>
						<td>
							<h:outputText value="#{requestScope.usr.phone}" />
						</td>
					</tr>					
				</table>
				<br>
				<div align="center"><h:commandLink action="toMain" value="#{msg.back}" style="nav" immediate="true"/></div>
			</h:form>
		</f:view>
	</body>	
</html>  
